<?php
class Page_Fixed extends Base{
    var $table = 'configuration';
    var $id_field = 'con_id';
    var $name_field = 'con_title';
    var $content;
    var $result = array();
    public function __construct($type){
        $this->result = db_first('SELECT * FROM configuration WHERE con_type = "'.$type.'" LIMIT 1');
        if($this->result) {   
            $this->name = $this->result['con_title'];
            $this->description = $this->result['con_help'];
            $this->url = '';
            $arr_value = json_decode(base64_decode($this->result['con_value']),1);
            $this->content = @$arr_value['content'];
        }
        else {
            $this->error404();
        }
        parent::__construct($this->result['con_id']);
    }
}
?>